
import 'package:flutter/cupertino.dart';
import 'package:flutter_app/http/DioRepository.dart';
import 'package:flutter_app/model/FictionContentData.dart';

class FictionContentPageViewModel extends ChangeNotifier{

  FictionContentData info;

  getChapterContent(String chapter){
    DioRepository().getFictionContent(chapter,onSuccess: (json){
      var value = BaseFictionContentData.fromJson(json);
      info = value.data.data;
      notifyListeners();
    });
  }
}